package com.lingnan.wanxiangxinxun.controller.admin;


import com.lingnan.wanxiangxinxun.entity.po.EmployeePosition;
import com.lingnan.wanxiangxinxun.entity.vo.common.Result;
import com.lingnan.wanxiangxinxun.service.IEmployeePositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 员工职位表 前端控制器
 * </p>
 *
 * @author swl
 * @since 2025-03-13
 */
@RestController
@RequestMapping("/admin/employee-position")
public class EmployeePositionController {

    @Autowired
    private IEmployeePositionService iEmployeePositionService;

    // 查询所有的员工职位
    @GetMapping("/getAll")
    public Result getAllEmployeePosition() {
        List<EmployeePosition> list = iEmployeePositionService.list();
        return Result.success(list);
    }

}
